# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.contrib import admin
from models import BookInfo,HeroInfo

# 自定义站点管理
#class QuestionAdmin(admin.ModelAdmin):
#	list_display = ['pk','btitle','bpub_date']
#	list_per_page = 10
	
# 关联对象
class HeroInfoInline(admin.StackedInline):
	model = HeroInfo
	extra = 2

class BookInfoaAdmin(admin.ModelAdmin):
	inlines = [HeroInfoInline]

admin.site.register(BookInfo,BookInfoaAdmin)
#admin.site.register(QuestionAdmin)

# Register your models here.
# admin.site.register(BookInfo)
# admin.site.register(HeroInfo)
